<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class MlcmsSetmoney extends Model
{
    protected $table="mlmcms_setmoney";
    public $timestamps=false;
    protected $fillable = [];
    protected $guarded =[];
    protected $primaryKey  = "MSEID";
    /**
     * 根据名字查找
     * @param type $pn
     */
    public static function getByPname($pn) {
        $res = static::where('Mse_ProductName', $pn)->first();
        return ($res ? $res : false);
    }
}
